<?php
namespace Cmf\Models;

use Log;
use Phalcon\Mvc\Dispatcher;

/**
 * Class Permission
 * @package Cmf\Models
 */
class Permission extends \Phalcon\Mvc\Model
{
	public $id;
	public $node;
	public $status;
	public $role_id;
	public $created_at;
	public $updated_at;

	public function initialize()
	{
		$this->setSource(TABLE_PREFIX."permission");
	}

	public function beforeCreate()
	{
		$this->created_at = time();
	}

	public function beforeUpdate()
	{
		$this->updated_at = time();
	}

}